package com.nuoniu.sibanyun.entity.erp.barcode;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 条码管理-打印管理-条码明细
 * </p>
 *
 * @author 白强
 * @since 2021-11-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bc_barcode_print_detail")
@ApiModel(value="ErpBarcodePrintDetail对象", description="条码管理-打印管理-条码明细")
public class ErpBarcodePrintDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "条码打印ID")
    @TableField("barcode_print_id")
    private Integer barcodePrintId;

    @ApiModelProperty(value = "条码规则ID")
    @TableField("barcode_rule_id")
    private Integer barcodeRuleId;

    @ApiModelProperty(value = "条码规则名称")
    @TableField("barcode_rule_name")
    private String barcodeRuleName;

    @ApiModelProperty(value = "条码规则编码")
    @TableField("barcode_rule_code")
    private String barcodeRuleCode;

    @ApiModelProperty(value = "打印模板ID")
    @TableField("print_template_id")
    private Integer printTemplateId;

    @ApiModelProperty(value = "打印模板名称")
    @TableField("print_template_name")
    private String printTemplateName;

    @ApiModelProperty(value = "打印模板编码")
    @TableField("print_template_code")
    private String printTemplateCode;

    @ApiModelProperty(value = "条码")
    @TableField("bar_code")
    private String barCode;

    @ApiModelProperty(value = "打印数量")
    @TableField("print_quantity")
    private Integer printQuantity;

    @ApiModelProperty(value = "数量")
    @TableField("quantity")
    private BigDecimal quantity;

    @ApiModelProperty(value = "物料ID")
    @TableField("inventory_id")
    private Integer inventoryId;

    @ApiModelProperty(value = "物料名称")
    @TableField("inventory_name")
    private String inventoryName;

    @ApiModelProperty(value = "物料编码")
    @TableField("inventory_code")
    private String inventoryCode;

    @ApiModelProperty(value = "规格")
    @TableField("inventory_specification")
    private String inventorySpecification;

    @ApiModelProperty(value = "扩展属性JSON")
    @TableField("extend_json")
    private String extendJson;

    @ApiModelProperty(value = "是否主档对照")
    @TableField("is_main_info")
    private Boolean isMainInfo;

    @ApiModelProperty(value = "条码主档ID")
    @TableField("barcode_main_info_id")
    private Integer barcodeMainInfoId;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "累计打印次数")
    @TableField("cum_print_quantity")
    private Integer cumPrintQuantity;


}
